package xyz.twj;

import javafx.application.Application;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import xyz.twj.fx.WebViewScene;

/**
 * @author tianwenjian
 * @date 2019/7/19
 */
public class APP extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        WebViewScene webViewScene = new WebViewScene("http://localhost:8080/");
        webViewScene.getWebView().setPrefHeight(600.0);
        webViewScene.getWebView().setPrefWidth(1200.0);

        primaryStage.setTitle("sdds");
        primaryStage.initStyle(StageStyle.UNDECORATED);
        primaryStage.setScene(webViewScene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
